package cn.domypay.back.exception;

/**
 * This is base Exception for System. All system exception should extend it.
 * Exception messages should be stored in the
 * properties file and the keys should be passed as messages.
 * @author Tim huang
 *
 * @version 1.0
 */

public class DoMyPayException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3382856168976219277L;

	public DoMyPayException() {
	}

	/**
	 * Constructor that sets the error key
	 * 
	 * @param msg
	 *            Message to report for the exception.
	 */
	public DoMyPayException(String msg) {
		super(msg);
	}

	/**
	 * Constructor based on an existing exception
	 * 
	 * @param cause
	 *            The root exception to chain.
	 */
	public DoMyPayException(Throwable cause) {
		super(cause);
	};

	/**
	 * Constructor based on a message and an existing exception.
	 * 
	 * @param msg
	 *            Message to use for the exception
	 * @param cause
	 *            The root caues to chain
	 */
	public DoMyPayException(String msg, Throwable cause) {
		super(msg, cause);
	}

}
